<% content_for :title do %>
    Register
<% end %>
<% if @user.errors.any? %>
    <ul>
        <% @user.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
    <% end %>
    </ul>
<% end %>
<div class="large-5 columsn">
    <%= form_for 'user', url: users_path do |f| %>
    <fieldset>
        <legend>Registration Page</legend>
        <%= f.label :name %>
        <%= f.text_field :name %>
        <%= f.label :email %>
        <%= f.text_field :email %>
        <%= f.label :password %>
        <%= f.password_field :password %>
        <%= f.label :password_confirmation %>
        <%= f.password_field :password_confirmation %>
        <%= f.submit 'Submit', class: 'button' %>
    </fieldset>
    <% end %>
</div>
